<template>
  <div class="numberbox">
    <!-- <p class="numberbox-title">选择数量</p>
    <el-input-number
      class="numer-input"
      v-model="num"
      @change="handleChange"
      :min="1"
      :max="10"
      label="描述文字"
    ></el-input-number> -->
  </div>
</template>

<script>
import { mapMutations } from 'vuex'

export default {
  name: 'numberbox',
  data () {
    return {
      num: 1
    }
  },

  methods: {
    ...mapMutations('ticketinfo', ['setTotal']),
    handleChange (e) {
      this.setTotal(e)
    }
  }
}
</script>

<style scoped lang="less">
.numberbox {
  padding-top: 32px;
  .numberbox-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    line-height: 21px;
  }
  .numer-input {
    margin-top: 8px;
    /deep/ .el-input__inner {
      font-size: 20px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 28px;
    }

  }
}
</style>
